package com.boot.proofing;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootVersion;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.core.SpringVersion;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 发现@Scheduling注解，默认串行执行。
 */
@EnableScheduling
/**
 * 扫描mybatis mapper实体类路径
 */
@SpringBootApplication(scanBasePackages={
"com.boot.core.*",
"com.boot.proofing.*",
"com.gitee.sunchenbin.mybatis.actable.*"
})
public class ProofingApplication extends SpringBootServletInitializer {
	public final Logger logger = LoggerFactory.getLogger(this.getClass());

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		logger.info("SPRING VERSION: {}" , SpringVersion.getVersion());
		logger.info("SPRING BOOT VERSION: {}" , SpringBootVersion.getVersion());
		return application.sources(ProofingApplication.class);
	}


	public static void main(String[] args) {
		SpringApplication.run(ProofingApplication.class, args);
	}
}
